Skip to content

KUBE-1116: [gke] do not delete cluster if deleting cluster_id#485

Closed
ValyaB wants to merge 5 commits intomasterfrom
KUBE-1116
Closed

KUBE-1116: [gke] do not delete cluster if deleting cluster_id#485
ValyaB wants to merge 5 commits intomasterfrom
KUBE-1116

Conversation

@ValyaB
Copy link
Copy Markdown
Contributor

@ValyaB ValyaB commented Apr 22, 2025

No description provided.

@ValyaB ValyaB requested a review from a team as a code owner April 22, 2025 11:48
@ValyaB ValyaB requested review from Copilot and removed request for a team April 22, 2025 11:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to address the drift issue on reonboard with impersonation for GKE clusters. Key changes include:

  • Updating the log message and drift detection handling in resourceCastaiGKEClusterRead.
  • Removing the automatic reset of credentials in favor of a simple warning.
  • Improving error handling in resourceCastaiGKEClusterDelete by returning the error diagnostic.
Comments suppressed due to low confidence (1)

castai/resource_gke_cluster.go:155

  • Removing the automatic reset of FieldGKEClusterCredentials (previously setting it to 'credentials-drift-detected-force-apply') may leave the cluster in a drifted state if the credentials aren’t manually reapplied. Consider adding documentation or alternative logic to ensure credentials are reapplied where needed.
log.Printf("[WARN] Drift detected in credentials_id. State: %q, API: %q. Consider reapplying credentials.", data.Get(FieldClusterCredentialsId), *resp.JSON200.CredentialsId)

@ValyaB ValyaB requested review from aldor007 and furkhat April 22, 2025 11:49
@ValyaB ValyaB changed the title KUBE-1116: [gke] fix drift on reonboard with impersonation KUBE-1116: [gke] do not delete cluster if deleting cluster_id May 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 5, 2025

This PR has been labeled as stale due to inactivity and will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Jun 5, 2025
@github-actions
Copy link
Copy Markdown

This PR has been closed due to inactivity. Feel free to reopen if you are still working on it.

@github-actions github-actions bot closed this Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants